#include "seg.h"
#include "board.h"
#include "adc.h"
#include <stdio.h>
int main()
{
    board_init();
    seg_init();
    ADC_Configuration();
    while (1) {
        uint16_t voltage = get_voltage();
        voltage += voltage * 0.02;
        uint16_t current = get_current();
        seg_decode(0, voltage);
        seg_decode(1, current);
        delay_ms(100);
    }
    return 0;
}